Pakistan resumed their second innings needing a further 228 for victory with seven wickets in hand, but their chances faded when Olivier removed the dangerous Babar Azam (21) and captain Sarfraz Ahmed (0) in consecutive balls.